<?php
    ob_start();

    define('ABSOLUTE_SERVER_DOCUMENT_ROOT','../../../admin/');

    
    include(ABSOLUTE_SERVER_DOCUMENT_ROOT.'session.inc');
    require_once(ABSOLUTE_SERVER_DOCUMENT_ROOT.'funct.inc');   
    
    require_once(ABSOLUTE_SERVER_DOCUMENT_ROOT.'functs.inc');
    require_once('adm_product_link.inc');
    include ABSOLUTE_SERVER_DOCUMENT_ROOT.'color_style.php';

    require_once('../../../classDB.inc.php');
    include '../../'.LANGUAGE;

    if(!GetAdminID($ID)){echo LOGIN_ERR; exit;}
    if(!Right_Check(4)){header('Location:'.ABSOLUTE_SERVER_DOCUMENT_ROOT.'error.php'); exit;}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>
	<?php echo '<meta http-equiv="Content-Type" content="text/html; charset='._CHARSET_.';">'; ?>
	
	<script language="JavaScript">
        <!--
	        function SubmitDataAndClosePage()
			{
	    		document.post_addr.submit();
	    		top.close();
	        }
    	//-->
    </script>
	
	<style  type="text/css"><!--
		table{
            border-bottom-color: black;
            border-top-color: black;
            border-left-color: black;
            border-right-color: black;
            border-collapse: collapse;
            font-size: 10px;
            font-family:  verdana;
        }
        form {margin-top:0pt; margin-bottom:0px;}
        img {margin-top:0pt; margin-bottom:0px;}
        body{
            margin-left:0pt;
            margin-right:0pt;
            margin-top:0pt;
            margin-bottom:0pt;
            font-family:  verdana;
            font-size: 10px;
        }
        textarea{
        	border: 0;
            background-color: white;
            margin-left:0pt;
            margin-right:0pt;
            margin-top:0pt;
            margin-bottom:0pt;
            font-family:  verdana;
            font-size: 10px;
        }
        input {
            border: 1px solid black;
            cursor: hand;
            background-color: white;
            font-size: 10px;
            margin-left: 0px;
            padding-left: 0px;
            list-style-type: none;
            font-family:  Verdana;
        }
        a {
		  	text-decoration: none; 
		  	font-weight: normal; 
		  	color:black; 
		  	font-size:10px;
		}
		a:hover {
		  	text-decoration: underline; 
			font-weight: normal; 
			color:#808080; 
			font-size:10px;
		}
    --></style>
</head>
<?php

print "<body bgcolor=".Background_Color.">";

	do
	{	    
	    $New_Address_List	= $_REQUEST["Address_List"];
	        
		print "
		  	<form action=\"adm_show_selected_products.php\" target=\"selected\" method=\"post\" name=\"post_addr\">
				<table  style=\"width:100%;border:0px solid black;\">
					<tr style=\"background-color:".TR_BACKGOUND_COLOR_2.";\">
						<td>
							<b>".PL_ZOZNAM_VYBRANYCH_ADRIES."</b>
						</td>
					</tr>
					<tr>
						<td>
							<textarea name=\"New_Address_List\" wrap=\"ON\" style=\"width:100%;height:70px;background-color:white;\">$New_Address_List</textarea>
						</td>
					</tr>
					<tr>
						<td>							
							<input type=\"submit\" value=\"".PL_ULOZIT_ZOZNAM_ADRIES."\" style=\"width:100%;\"
								onClick=\"javascript:SubmitDataAndClosePage()\">
						</td>
					</tr>
				</table>
			</form>
		";
	}
	while(false)
?>


</body>
</html>
